//package com.lsp.microorder.recharge.consumer;
//
//import com.lsp.microcommon.entity.RechargeInfo;
//import com.lsp.microorder.recharge.service.RechargeInfoService;
//import org.springframework.amqp.rabbit.annotation.RabbitHandler;
//
//import javax.annotation.Resource;
//
///**
// * 死信队列的消费者
// */
//
////@Component
////@RabbitListener(queues = "order_dlx_queue")
//public class DlxConsumer {
//
//    @Resource
//    private RechargeInfoService rechargeInfoService;
//
//    @RabbitHandler
//    public void receiveMsg(String orderId){
////        将业务订单设置为取消状态
//        RechargeInfo rechargeInfo = rechargeInfoService.rechargeInfo(Integer.valueOf(orderId));
//        if(rechargeInfo!=null&&rechargeInfo.getStateFlag().equals(1)){
//            rechargeInfoService.updateRechargeStatus(Integer.valueOf(orderId),3);
//        }
//    }
//}
